<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Axios-delete</title>
		<script src="../js/axios.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			/*GET请求的方式 与Delete请求的方式一致
			//1.删除name ="xxx"的数据 使用params 对象的方式实现
			
			*/
		   let user = {
			   name: '星期五'
			   }
		   axios.delete("http://localhost:8090/deleteUserByName",{
			   params: user
		   }).then(result =>{
			   console.log(result.data)
		   })
		   
		   //2.删除 name= "xxx",sex="xxx" 使用restful风格实现
		   axios.delete("http://localhost:8090/user/宵夜吃什么/女")
		   .then(result =>{
			   console.log(result.data)
			   })
		</script>
	</head>
	<body>
	</body>
</html>
